package club.yunqiang.club.templatedownload.service;

import club.yunqiang.club.templatedownload.domain.enums.TemplateEnum;
import org.apache.poi.ss.usermodel.Workbook;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;

public interface ITemplateService {


    /**
     * 模板下载
     * @param templateCode 参考{@link TemplateEnum}
     */
    void download(String templateCode, HttpServletResponse response);

    /**
     * 给模板填充下拉数据
     *
     * @param templateEnum 模板枚举
     * @param inputStream 输入流
     */
    Workbook fillDropDownData(TemplateEnum templateEnum, InputStream inputStream);

}
